package cqie.frame.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName emp
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("emp")
@ApiModel(description = "员工表")
public class Emp implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "员工ID")
    private Long id;

    /**
     * 工号
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "员工工号")
    private String code;

    /**
     * 姓名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "员工姓名")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "sex")
    @ApiModelProperty(value = "员工性别")
    private Integer sex;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    @ApiModelProperty(value = "员工ID")
    private String mobile;

    /**
     * 部门Id
     */
    @TableField(value = "deptId")
    @ApiModelProperty(value = "员工所属部门")
    private Long deptId;

    /**
     * 用户Id
     */
    @TableField(value = "userId")
    @ApiModelProperty(value = "员工所属用户")
    private Long userId;

    private static final long serialVersionUID = 1L;
}